﻿using SqlSugar;
using System.Collections.Generic;

namespace QingZhouLinYe_Web.Models
{
    [SugarTable("SheBeiLeiXing")]
    public class SheBeiLeiXing
    {
        [SugarColumn(IsIdentity =true,IsPrimaryKey =true,ColumnDescription ="主键Id")]
        public int Id { get; set; }

        [SugarColumn(ColumnDescription ="设备类型")]
        public string LeiXing { get; set; }

        [Navigate(NavigateType.OneToMany,nameof(SheBei.LeiXingId))]  //配置一对多关系，定义一个类型有多个设备
        public List<SheBei> SheBeis { get; set; }
    }
}